package it.disim.tlp.webreputation.business.model;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;

public class Post {
	private int id;
	private String link;
	private Date data;
	private String polarity;
	private String text;
	private Sorgente sorgente;
	private Collection<Topic> topics = new ArrayList<Topic>();
	
		
	public Post(String link, Date data, String polarity, String text,
			Sorgente sorgente, Collection<Topic> topics) {
		super();
		this.link = link;
		this.data = data;
		this.polarity = polarity;
		this.text = text;
		this.sorgente = sorgente;
		this.topics = topics;
	}



	public Post(int id, String link, Date data, String polarity, String text,
			Sorgente sorgente, Collection<Topic> topics) {
		super();
		this.id = id;
		this.link = link;
		this.data = data;
		this.polarity = polarity;
		this.text = text;
		this.sorgente = sorgente;
		this.topics = topics;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getLink() {
		return link;
	}
	public void setLink(String link) {
		this.link = link;
	}
	public Date getData() {
		return data;
	}
	public void setData(Date data) {
		this.data = data;
	}
	public String getPolarity() {
		return polarity;
	}
	public void setPolarity(String polarity) {
		this.polarity = polarity;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public Sorgente getSorgente() {
		return sorgente;
	}
	public void setSorgente(Sorgente sorgente) {
		this.sorgente = sorgente;
	}
	public Collection<Topic> getTopics() {
		return topics;
	}
	public void setTopics(Collection<Topic> topics) {
		this.topics = topics;
	}
	
	
	
}